<template>
	<!-- ok -->
	<view class="wanlpage-category-title" @tap="checkMore">
		<view class="text-lg">
			<text class="margin-right-xs"></text>{{pageName.name}}
		</view>
		<view class="text-sm">
			查看更多<text class="wlIcon-fanhui2 margin-left-xs"></text>
		</view>
	</view>
</template>
<script>
	export default {
		name: "WanlPageCategoryTitle",
		props: {
			pageName: {
				type: Object,
				default: {
					id: '',
					name: '',
				}
			},
		},
		data() {
			return {
				eleID: 'popular',
				wanlsys: {},
			}
		},

		methods: {
			//  查看更多
			checkMore() {
				// console.log('查看更多', id)
				if (this.pageName.id == 118) {
					this.$wanlshop.to(`/pages/adopt/list`, 'fade-in', 100);
					// console.log('公益领养', this.pageName)
				} else {
					this.$wanlshop.to(`/pages/product/list?type=goods&search=${this.pageName.name}`, 'fade-in', 100);
				}
			}
		}
	}
</script>
<style>
	.wanlpage-category-title {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin: 22rpx;
		font-weight: bold;
	}
</style>